import React, { Component } from 'react';

// 子组件
export class Child1 extends Component {
  render() {
    // console.log('子', this.props);
    return (
      <div className="child">
        <h1>子1</h1>
        <h3>子2传递的消息:{this.props.msg}</h3>
      </div>
    );
  }
}
